package cn.amos.dao.entity;

import com.google.gson.Gson;

import java.io.Serializable;
import java.util.Date;

/**
 * @author DaoyuanWang
 */
public class ProductEntity implements Serializable {

    private static final long serialVersionUID = 8261219183734730159L;

    /**
     * 产品id
     */
    private Integer proId;
    /**
     * 产品名称
     */
    private String name;
    /**
     * 产品价格
     */
    private String price;
    /**
     * 产品信息
     */
    private String info;
    /**
     * 产品拓展字段
     */
    private String expand;
    /**
     * 产品状态[true: 正常；false: 无效]
     */
    private Boolean status;
    /**
     * 产品更新时间
     */
    private Date updateTime;
    /**
     * 产品创建时间
     */
    private Date createTime;

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getExpand() {
        return expand;
    }

    public void setExpand(String expand) {
        this.expand = expand;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
